package com.jiedeng.model;

import javax.persistence.*;
import java.util.Date;

/**
 * @author 覃远龙
 * @ClassName: SenderReceiver
 * @Description:
 * @date 2017/7/25 14:29
 */
@Entity(name = "t_sendreceive")
public class SenderReceiver {

    @Id
    @Column(name = "ID", length = 100)
    private String id;

    @Column(name = "senduserid")
    private long senderId;

    @Column(name = "Receiveuserid")
    private long receiverId;

    @Column(name = "title", length = 1000)
    private String title;

    @Column(name = "content", length = 1000)
    private String content;

    @Column(name = "urgency")
    private int urgency;

    @Column(name = "importance")
    private int impartance;

    @Column(name = "t_project_id")
    private long projectId;

    @Column(name = "type")
    private int type;

    @Column(name = "Module_ID")
    private int moduleId;

    @Column(name = "Params", length = 1000)
    private String params;

    @Column(name = "IsFile")
    private boolean isFile;

    @Column(name = "Alarm")
    @Temporal(TemporalType.TIMESTAMP)
    private Date alarm;

    @Column(name = "IsSend")
    private boolean isSend;

    @Column(name = "IsDo")
    private boolean isDo;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public long getSenderId() {
        return senderId;
    }

    public void setSenderId(long senderId) {
        this.senderId = senderId;
    }

    public long getReceiverId() {
        return receiverId;
    }

    public void setReceiverId(long receiverId) {
        this.receiverId = receiverId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public int getUrgency() {
        return urgency;
    }

    public void setUrgency(int urgency) {
        this.urgency = urgency;
    }

    public int getImpartance() {
        return impartance;
    }

    public void setImpartance(int impartance) {
        this.impartance = impartance;
    }

    public long getProjectId() {
        return projectId;
    }

    public void setProjectId(long projectId) {
        this.projectId = projectId;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public int getModuleId() {
        return moduleId;
    }

    public void setModuleId(int moduleId) {
        this.moduleId = moduleId;
    }

    public String getParams() {
        return params;
    }

    public void setParams(String params) {
        this.params = params;
    }

    public boolean isFile() {
        return isFile;
    }

    public void setFile(boolean file) {
        isFile = file;
    }

    public Date getAlarm() {
        return alarm;
    }

    public void setAlarm(Date alarm) {
        this.alarm = alarm;
    }

    public boolean isSend() {
        return isSend;
    }

    public void setSend(boolean send) {
        isSend = send;
    }

    public boolean isDo() {
        return isDo;
    }

    public void setDo(boolean aDo) {
        isDo = aDo;
    }
}
